import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'echarts-gl'
import 'echarts-liquidfill'
import store from '@/stores'
import App from './App.vue'
import router from './router'
import directive from '@/directives/index'
import { commonComponents } from './components'
import './assets/main.scss'
const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn
})
app.use(store)
app.use(router)
app.use(directive)
for (const item in commonComponents) {
  app.component(item, commonComponents[item])
}
app.mount('#app')
